package com.wandian.audio.adapter;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.makeramen.roundedimageview.RoundedImageView;
import com.mylib.libcore.utils.GlideUtil;
import com.wandian.audio.R;
import com.wandian.audio.bean.SingerSongEntityBean;

/**
 * 歌手歌曲-适配器
 */
public class AudioSingerSongRecycleAdapter extends BaseQuickAdapter<SingerSongEntityBean, BaseViewHolder> {

    private String singerName;
    private String singerHead;
    public AudioSingerSongRecycleAdapter(int layoutResId,String singerName,String singerHead) {
        super(layoutResId);
        this.singerHead = singerHead;
        this.singerName = singerName;
    }


    @Override
    protected void convert(BaseViewHolder helper, SingerSongEntityBean item) {
        RoundedImageView iv_author_head = helper.getView(R.id.iv_author_head);
        GlideUtil.into(mContext,singerHead,iv_author_head);
        helper.setText(R.id.tv_author_name, item.getName()+"")
                .setText(R.id.tv_author_info, singerName+"");

    }

}
